{template "header.html"}

<section class="slider-area">
    <div class="container">
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-6 col-md-offset-3">
                <!-- slider start -->
                <div class="slider">
                    <div id="mainSlider" class="nivoSlider">
                        {php $block=dr_block('syhdtp');}
                        {loop $block.file $i $file}
                        <img src="{dr_get_file($file)}" alt="{$block['title'][$i]}" title="#htmlcaption1"/>
                        {/loop}
                    </div>
                    <div id="htmlcaption1" class="nivo-html-caption progress-cap">
                        <div class="slider-progress"></div>
                    </div>
                    <div id="htmlcaption2" class="nivo-html-caption progress-cap">
                        <div class="slider-progress"></div>
                    </div>
                </div>
                <!-- slider end -->
                <!-- shipping-add-image start -->
                <div class="shipping-add-image">
                    <div class="row">
                        {php $block=dr_block('syxktp');}
                        {loop $block.file $i $file}
                        <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
                            <div class="single-shipping-image">
                                <img src="{dr_get_file($file)}" alt="{$block['title'][$i]}" />
                            </div>
                        </div>
                        {/loop}
                    </div>
                </div>
                <!-- shipping-add-image end -->
            </div>
            <div class="col-xs-12 col-md-3">
                <!-- featured-product start -->
                <div class="block4 sidebar-product">
                    <div class="section-heading">
                        <h2><span>本店</span> 推荐</h2>
                    </div>
                    <div class="row">
                        <div class="featured-product">
                            <!-- single carousel item start -->
                            <div class="item">
                                <!-- single product item start -->
                                {module module=goods flag=1 num=5 return=r}
                                <div class="block4-single-item">
                                    <div class="block4-pro-img">
                                        <a href="{$r.url}"><img src="{dr_thumb($r[thumb][0][file], 80, 80)}" /></a>
                                    </div>
                                    <div class="block4-pro-text">
                                        <a class="product-title" href="{$r.url}">{dr_strcut($r.title, 15)}</a>
                                        <div class="rating-box">
                                            {dr_mall_star_level($r.comments)}
                                        </div>
                                        <div class="product-price">
                                            <span class="regular-price">￥{number_format($r.price, 2)}</span>
                                        </div>
                                    </div>
                                </div>
                                {/module}
                                <!-- single product item end -->
                            </div>
                        </div>
                    </div>
                </div>
                <!-- featured-product end -->
            </div>
        </div>
    </div>
</section>
<!-- slider-area end -->

<!-- Bestseller products area start -->
{php $i=0;}
{category module=goods num=5 pid=0}
<section class="tab-carousel-product" style="margin-top: 30px">
    <div class="container">
        <div class="row">
            <div class="tab-product-area">
                <div class="bestseller-sec-heading section-heading">
                    <h2><span>{$i+1}F</span> <a href="{$t.url}">{$t.name}</a></h2>
                    <div class="tab-carousel-menu">
                        <ul class="nav nav-tabs product-nav nav-tabs-index">
                            {category module=goods pid=$t.id return=c}
                            <li class="{if $key_c==0}active{/if}"><p><a href="#Fashion_Dress_{$c.id}" data-toggle="tab">{$c.name}</a></p></li>
                            {/category}
                        </ul>
                    </div>
                </div>
                <!-- tab content start -->
                <div class="tab-content">
                    <!-- tabs one start -->
                    {category module=goods pid=$t.id return=c}
                    <div role="tabpanel" class="tab-pane {if $key_c==0} active{/if}" id="Fashion_Dress_{$c.id}">
                        <div class="tab-content-area tab-carousel-1">
                            <div class="product-carousel-1">
                                {module module=goods catid=$c.id num=16 return=r}
                                {if $key_r%2==0}
                                <div class="item">
                                    {/if}
                                    <!-- single-product-item start -->

                                    <div class="single-product-item">
                                        <div class="product-image">

                                            <a href="{$r.url}" target="_blank"><img src="{dr_thumb($r[thumb][0][file], 200, 160)}" alt="{$r.title}" /></a>
                                            <div class="single-product-overlay">
                                                <div class="rating-box">
                                                    {dr_mall_star_level($r.comments)}
                                                </div>
                                                <div class="product-quick-view">
                                                    <ul>
                                                        <li><a href="javascript:dr_module_favorite('goods', '{$r.id}');"><i class="fa fa-heart-o"></i></a></li>
                                                        <li><a href="{$r.url}"><i class="fa fa-eye"></i></a></li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="single-product-text">
                                            <h2><a class="product-title" href="{$r.url}" target="_blank">{dr_strcut($r.title, 22)}</a></h2>
                                            <div class="product-price">
                                                <span class="regular-price">￥{number_format($r.price, 2)}</span>
                                            </div>
                                            <div class="pro-add-to-cart">
                                                <p><a href="javascript:dr_select_cart('goods', 'price', '{$r.id}');" title="添加购物车">添加购物车</a></p>
                                            </div>
                                        </div>
                                    </div>


                                    <!-- single-product-item end -->

                                    {if $key_r%2==1}</div>{/if}
                                {/module}
                            </div>
                        </div>
                    </div>
                    {/category}
                    <!-- tabs one end -->

                </div>
                <!-- tab content end -->
            </div>
        </div>
    </div>
</section>
{php $i++;}
{/category}
<!-- Bestseller products area end -->

<!-- brand & client area start -->
<div class="brand-client-area">
    <div class="container">
        <div class="row">
            <div class="carousel-border">
                <div class="client-carousel">
                    {php $block=dr_block(7);}
                    {loop $block.file $i $file}
                    <div class="single-client">
                        <a href="{$block['title'][$i]}" target="_blank"><img src="{dr_get_file($file)}" /></a>
                    </div>
                    {/loop}

                </div>
            </div>
        </div>
    </div>
</div>
<!-- brand & client area end -->

{template "footer.html"}